CC=g++
CFLAGS= -c -Wall
LDFLAGS= -lglut
SOURCES=vector.cpp matrix.cpp model.cpp modelT.cpp arcball.cpp window.cpp test.cpp 
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=test

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f *~ *.o $(EXECUTABLE)
